package com.sfpay.merchant.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sfpay.merchant.auth.entity.system.SysDictData;

import java.util.List;

/**
 * <p>
 * 字典数据表 Mapper 接口
 * </p>
 *
 * @author fangchen
 * @since 2022-08-17
 */
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    List<SysDictData> selectDictDataByType(String dictType);

    int countDictDataByType(String dictType);

    int deleteDictTypeById(Long dictId);

    List<SysDictData> selectDictDataList(SysDictData dictData);

    int insertDictData(SysDictData data);

    SysDictData selectDictDataById(Long dictCode);

    int updateDictData(SysDictData data);

    int deleteDictDataById(Long dictCode);
}
